﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Steve.UI.Administration.Resources;

namespace Steve.UI.Administration.Models
{
    public sealed class NewCategoryDetailModel
    {
        [RegularExpression(RegexPatterns.CategoryName)]
        [Required]
        [Display(ResourceType = typeof(CommonResources), Name = "Category_CategoryName_Name", Description = "Category_CategoryName_Description", GroupName = "Basic_GroupName")]
        public string CategoryName { get; set; }

        [Display(ResourceType = typeof(CommonResources), Name = "Category_CategoryDescription_Name", Description = "Category_CategoryDescription_Description", GroupName = "Basic_GroupName")]
        public string CategoryDescription { get; set; }

        [Range(0, 10)]
        [Display(ResourceType = typeof(CommonResources), Name = "Category_RelevancyWeight_Name", Description = "Category_RelevancyWeight_Description", GroupName = "Advanced_GroupName")]
        public decimal RelevancyWeight { get; set; }

        [Display(ResourceType = typeof(CommonResources), Name = "Category_IsSiteVisible_Name", Description = "Category_IsSiteVisible_Description", GroupName = "Basic_GroupName")]
        public bool IsSiteVisible { get; set; }

        public string AutomatedQuery { get; set; }
    }
}
